package A1;

public class ProjModel{
    private static Integer horLanes = 0;
    private static Integer verLanes = 0;
    private static double probHLane = 0.0;
    private static double probVLane = 0.0;
    private static int cycle = 0;
    private static int counter = 0;
    GridPrint gp = new GridPrint();

    public void setHorLanes(int horLanes){
        ProjModel.horLanes = horLanes;
    }

    public static int getHorLanes(){
        return horLanes;
    }

    public void setVerLanes(int verLanes){
        ProjModel.verLanes = verLanes;
    }

    public static int getVerLanes(){
        return verLanes;
    }

    public void setProbHLane(double probHLane){
        ProjModel.probHLane = probHLane;
    }

    public static double getProbHLane(){
        return probHLane;
    }

    public void setProbVLane(double probVLane){
        ProjModel.probVLane = probVLane;
    }

    public static double getProbVLane(){
        return probVLane;
    }

    public void setCycle(int addCycle){
        ProjModel.cycle = cycle + addCycle;
    }

    public static int getCycle(){
        return cycle;
    }

    public static void addCounter(){
        counter++;
    }

    public void printCycle(){
        gp.runCycle();
    }

}